# -*- conding:UTF-8 -*-'''@ Project: one-group@ File: create_app.py@ Author: 孙博@ Date：2022/6/8 17:52'''from flask import Flaskfrom flask_cors import CORSfrom models import dbfrom views.users import user_bpfrom common.utils.jwt_auth import jwt_authorizationdef create_flask_app(config):    app = Flask(__name__)    app.config.from_object(config)    # 注册蓝图    app.register_blueprint(user_bp)    # 初始化整个项目    db.init_app(app)    # 钩子    app.before_request(jwt_authorization)    # 跨域    CORS(app)    return app